import Vue from 'vue'
import Router from 'vue-router'


// import Test from '@/components/test'
// import HelloWorld from '@/components/HelloWorld'
import Index from '@/pages/index/index'
import Login from '@/components/login'
import SelectMap  from '@/pages/selectMap/selectMap'
// import ReturnMoney from '@/pages/returnMoney/returnMoney'
import OwnerList from '@/pages/ownerList/ownerList'
import OwnerMap from '@/pages/selectMap/ownerMap'
import PassMap from '@/pages/selectMap/passMap'

import Register from "@/pages/register/register"
import UserInfo from "@/pages/register/userInfo"

Vue.use(Router);

export default new Router({
  // mode:'history',
  routes: [
    {
      path: '/login',
      name: 'login',
      component: Login,
      meta:{
        title:"登录"
      }

    },
    {
      path: '/',
      name: 'index',
      component: Index,
      meta: {
        title: '拼车'
      }
    },
    {
      path: '/selectMap',
      name: 'selectMap',
      component: SelectMap,
      meta: {
        title: '选择地图'
      }
    },
    {
      path: '/ownerMap',
      name: 'ownerMap',
      component: OwnerMap,
      meta: {
        title: '车主主界面'
      }
    },
    {
      path: '/ownerList',
      name: 'ownerList',
      component: OwnerList,
      meta: {
        title: '车列表'
      }
    },
    {
      path: '/passMap',
      name: 'passMap',
      component: PassMap,
      meta: {
        title: '乘客主界面'
      }
    },

    {
      path: '/register',
      name: 'register',
      component:Register,
      meta: {
        title: '注册'
      }
    },

    {
      path: '/userInfo',
      name: 'userInfo',
      component:UserInfo,
      meta: {
        title: '个人中心'
      }
    },


  ]
})
